﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace GesWork.ventas
{
    public partial class oportunidad : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            string id = Request.QueryString["id"];

            if (id == null)
            {
                FormView1.ChangeMode(FormViewMode.Insert);

            }

        }

        public string asignarValoracion(string valor)
        {
            switch (valor)
            {
                case "0":
                    return "Fria";
                    
                case "1":
                    return "Templada";
                    
                case "2":
                    return "Caliente";
                    
            }
            return "";
        }

        public string asignarEstado(string valor)
        {
            switch (valor)
            {
                case "0":
                    return "Abierta";

                case "1":
                    return "Ganada";

                case "2":
                    return "Perdida";

            }
            return "";
        }

        public string asignarMetEst(string valor)
        {
            switch (valor)
            {
                case "0":
                    return "Automatica";

                case "1":
                    return "Manual";

                

            }
            return "";
        }
    }
}
